package com.wms.entity;

public class User {

    private String no;
    private String name;

    private String password;
    private Integer age;
    private Integer sex;
    private String phone;
    private Integer roleId;
    private String isvalid;

    // Default constructor
    public User() {}

    // Constructor for initializing user
    public User(String no, String name, String password, Integer age, Integer sex, String phone, Integer roleId, String isvalid) {
        this.no = no;
        this.name = name;
        this.password = password;
        this.age = age;
        this.sex = sex;
        this.phone = phone;
        this.roleId = roleId;
        this.isvalid = isvalid;
    }

    // Getters and setters
    public String getNo() { return no; }
    public void setNo(String no) { this.no = no; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }

    public Integer getAge() { return age; }
    public void setAge(Integer age) { this.age = age; }

    public Integer getSex() { return sex; }
    public void setSex(Integer sex) { this.sex = sex; }

    public String getPhone() { return phone; }
    public void setPhone(String phone) { this.phone = phone; }

    public Integer getRoleId() { return roleId; }
    public void setRoleId(Integer roleId) { this.roleId = roleId; }

    public String getIsvalid() { return isvalid; }
    public void setIsvalid(String isvalid) { this.isvalid = isvalid; }

    @Override
    public String toString() {
        return "User{" +
                "no='" + no + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", phone='" + phone + '\'' +
                ", roleId=" + roleId +
                ", isvalid='" + isvalid + '\'' +
                '}';
    }
}
